def input_number(reminder):
    result = input(reminder)
    if (not result.isdigit()):
        result = input(reminder)
    return int(result)


min = input_number("请输入查找范围的最小值：")
max = input_number("请输入朝朝范围的最大值：")
guess_number = input_number("请输入希望查找的数：")
mid = int((max + min) / 2)
guess_data = []
while (min < max):
    guess_data.append(mid)
    if (mid == guess_number): break
    if (mid > guess_number):
        max = mid - 1
    else:
        min = mid + 1
    mid = int((max + min) / 2)
print("猜测过程：", end="")
for i in guess_data:
    print("{} ".format(i), end="")
